package com.sajus.billing.client.util;

import javax.naming.NamingException;

public interface EJBServiceLocator {
	public enum EJBs {
		
		ServiceTypeManagerBean("com.sajus.billing.client.ejb.interfaces.ServiceTypeManagerLocal", "com.sajus.billing.client.ejb.interfaces.ServiceTypeManagerRemote"),
		AccountManagerBean("com.sajus.billing.client.ejb.interfaces.AccountManagerLocal", "com.sajus.billing.client.ejb.interfaces.AccountManagerRemote");
		
		private String localInterface;
		private String remoteInterface;

		private EJBs(String localInterface, String remoteInterface) {
			this.localInterface = localInterface;
			this.remoteInterface = remoteInterface;
		}

		public String getLocalInterface() {
			return localInterface;
		}

		public String getRemoteInterface() {
			return remoteInterface;
		}
		
		
	};
	public <T> T locate(EJBs ejbToLocate) throws NamingException;
}